# coding=utf-8
"""

"""

# @Time    :  2024-10-16 17:58:15
# @Author  :  jiangtong
# @Email   :  gingerqgyy@outlook.com
# @Project :  ginger_yl_test_boost
# @File    :  res_msg

from enum import Enum


class ResMsg(Enum):
    SUCCESS = 'OK', 'OK', 200
    FAILURE = '失败', 'UNKNOWN_ERROR', 501
    NOT_FOUND = '请求路径未找到', 'RESOURCE_NOT_FOUND', 404

    LOSE_TOKEN = 'Token缺失', 'LOSE_TOKEN', 400
    UNAUTHORIZED = '未授权访问权限', 'UNAUTHORIZED', 401
    PARAMETER_FAILED = '参数格式有误', 'PARAM_TYPE_ERROR', 402
    VALIDATION_FAILED = '请求参数校验失败', 'PARAM_CHECK_ERROR', 403
    METHOD_NOT_SUPPORTED = '请求方法不支持', 'VALIDATION_ERROR', 405


if __name__ == '__main__':
    print(ResMsg.SUCCESS.value)
    print(ResMsg.LOSE_TOKEN.value)
